<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="pg"  uri="http://jsptags.com/tags/navigation/pager" %>

<html>
<head>
<title>工作信息管理系统</title>
<link href="<%= request.getContextPath() %>/css/wims.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%= request.getContextPath() %>/js/PopupCalendar.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/prototype.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/buffalo.js"></script>
<script type="text/javascript" src="<%= request.getContextPath() %>/js/pims.js"></script>
</head>
<body>
<form action="<%= request.getContextPath() %>/log/list.do" name="listForm" method="post">
<%@ include file="/jsp/main/banner.jsp" %> 
	<div id="pageTopShell">
		<div id="pageTop" class="clearfix">
			<div id="pageTitle">日志管理</div>
		</div>
	</div>
	<div class="tbActionBar">
		<ul class="clearfix">
			<li>日志类型：<select name="logType" onChange="document.getElementById('curPage').value=1;listForm.submit();"><option value="0" <c:if test="${logType eq 0}">selected</c:if>>全部日志</option><option value="1" <c:if test="${logType eq 1}">selected</c:if>>登陆日志</option><option value="2" <c:if test="${logType eq 2}">selected</c:if>>操作日志</option></select></li>
		</ul>
	</div>
	<s:property value="@com.ulic.customerManApplication.pager.PagerTag@getStart('日志列表', #request.pm)" escape="false"/>
	<table border="0" cellpadding="0" cellspacing="0" class="tbDataTable" width="100%">
		<thead>
		<tr>
			<td align="center" width="70%">日志内容</td>
			<td align="center" width="15%">访问地址</td>
			<td align="center" width="15%">访问时间</td>
		</tr>
		</thead>
		<tbody>
		<s:if test="#request.pm.datas.size()==0">
			<tr>
				<td colspan="14" align="center"><font color="red">暂无数据！</font></td>
			</tr>
		</s:if>
	    <s:else>
			<s:iterator value="#request.pm.datas" var="bean" status="status">
				<s:if test="#status.odd == true">
					<tr	class="rowNormal" onmouseover="this.className='rowChecked'" onmouseout="this.className='rowNormal'">
				</s:if>
				<s:else>
					<tr	class="rowAlternate" onmouseover="this.className='rowChecked'" onmouseout="this.className='rowAlternate'">
				</s:else>
					<td align="center"><s:property value="#bean.content"/></td>
					<td align="center"><s:property value="#bean.ip"/></td>
					<td align="center"><s:date name="#bean.time" format="yyyy-MM-dd HH:mm:ss"/>
					</td>
				</tr>
			</s:iterator>
		</s:else>
		<tr>
		</tr>
		</tbody>
	</table>
	<s:property value="@com.ulic.customerManApplication.pager.PagerTag@getEnd(#request.pm)" escape="false"/>
</form>
</body>
</html>